import java.util.Scanner;


public class IncomingManager
{
   int customerID;
   
   public IncomingManager(int ci)
   {
      customerID = ci;
   }
   
   public void processRequest()
   {
      boolean process = true;
      while(process)
      {
         Scanner in = new Scanner(System.in);
         System.out.println("Enter the Item's ID or -1 to quit: ");
         int itemID = in.nextInt();
         
         if(itemID == -1)
         {
            process = false;
            break;
         }
         if(Accounts.retrieveAccount(customerID).returnedItem(itemID))
        	 Inventory.returnItem(itemID);         
      }
   }
}